<template>
  <div class="home">
    <Header :title="pageTitle" ref="Header"></Header>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";
import { getTest } from "@/api/home";
import Header from "@/components/base/header/index.vue";
export default defineComponent({
  name: "Home",
  setup() {
    return {
      pageTitle: "Home",
    };
  },
  mounted() {
    this.getComponentData();
  },
  components: {
    Header,
  },
  methods: {
    getComponentData() {
      getTest({})
        .then((res) => console.warn(res))
        .catch((err) => console.error(err));
    },
  },
});
</script>

<style lang="scss" scoped>
.home {
}
</style>
